﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestRepository
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void Test_IEnumerable()
        {
            Repository.Employees repository = new Repository.Employees();

            var enumarable = repository.RetrieveThroughIEnumerable("A");

            var count = enumarable.Count<string>();

            foreach (var item in enumarable)
            {
                Assert.IsTrue(item.StartsWith("A"));
            }


        }



        [TestMethod]
        public void Test_IList()
        {
            Repository.Employees repository = new Repository.Employees();

            var iList = repository.RetrieveThroughList("A");

            var count = iList.Count<string>();

            foreach (var item in iList)
            {
                Assert.IsTrue(item.StartsWith("A"));
            }


        }
    }
}
